nlp_architect.data.amazon_reviews.Amazon_Reviews

class nlp_architect.data.amazon_reviews.Amazon_Reviews(review_file, run_balance=True)[source]

Take the *.json file of Amazon reviews as downloaded from http://jmcauley.ucsd.edu/data/amazon/ Then does data cleaning and balancing, as well as transforms the reviews 1-5 to a sentiment

__init__(review_file, run_balance=True)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(review_file[, run_balance])

Initialize self.

process()

process()[source]